package base;

public class T5 {
}

class T51{
    int x = 1;
    T51(){
        System.out.println("T51");
    }

}
class T52 extends T51{

}
class X{
    Y y=new Y();
    public X(){
        System.out.print("X");
    }
}
class Y{
    public Y(){
        System.out.print("Y");
    }
}
 class Z extends X{
    Y y=new Y();
    public Z(){
        System.out.print("Z");
    }
    public static void main(String[] args) {
        new Z();
    }
}